//
//  DownLoadManager.h
//  LM_DownLoadDemo
//
//  Created by lanou3g on 16/4/27.
//  Copyright © 2016年 liman. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MuiscDownLoadTsk.h"
#import "LMRadioListModel.h"

typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);

@interface DownLoadManager : NSObject
@property (nonatomic, strong) NSMutableArray *array;

- (void)addDownloadTask:(LMRadioListModel *)model Progress:(ProgressBlock)proBlock Complete:(CompleteBlock)comBlock;
+(instancetype)shareManager;

//当前下载任务个数
- (NSInteger )count;
//取标题
- (NSString *)getTitleWithIndex:(NSInteger)index;
//设置block
- (void)setProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock Index:(NSInteger)index;

@end
